package com.zhangji.springcloud;

import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @Description: 主启动类
 * @Author: Zhang Ji
 * @Date: 2021/6/23 9:14
 * Created by IntelliJ IDEA.
 */
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient // 服务发现
// ZJTODO: 2021/6/25 开启EurekaClient，需要引入@EnableEurekaClient。Eureka采用CS架构，7001是注册中心server端，8001是client端。
public class DeptProvider_8001 {

    public static void main(String[] args) {
        SpringApplication.run(DeptProvider_8001.class,args);
    }

}
// http://localhost:8001/dept/queryAll
